package cn.hznc.domain.entity;

import com.alibaba.fastjson.annotation.JSONField;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.gitee.sunchenbin.mybatis.actable.annotation.Column;
import lombok.Data;

import java.util.Date;
@Data
@TableName(value = "TDJJH010")
public class AbutmentOrderEntity {
    /**
     * 生产订单
     */
    @Column(name = "生产订单")
    @TableField(value = "生产订单")
    private String taskId;

    /**
     * 订单类型
     */
    @Column(name = "订单类型")
    @TableField(value = "订单类型")
    private String orderType;

    /**
     * 物料编码
     */
    @Column(name = "物料编码")
    @TableField(value = "物料编码")
    private String materialNo;

    /**
     * 公司图号
     */
    @Column(name = "公司图号")
    @TableField(value = "公司图号")
    private String figureNo;

    /**
     * 用户图号
     */
    @Column(name = "用户图号")
    @TableField(value = "用户图号")
    private String personalFigureNo;

    /**
     * 计划数量
     */
    @Column(name = "计划数量")
    @TableField(value = "计划数量")
    private Integer planNumber;

    /**
     * 在制数量
     */
    @Column(name = "在制数量")
    @TableField(value = "在制数量")
    private Integer inProcessNumber;

    /**
     * 创建日期
     */
    @Column(name = "创建日期")
    @TableField(value = "创建日期")
    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    /**
     * 交货日期
     */
    @Column(name = "交货日期")
    @TableField(value = "交货日期")
    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    private Date finishTime;

    /**
     * 下达日期
     */
    @Column(name = "下达日期")
    @TableField(value = "下达日期")
    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    private Date releaseTime;

    /**
     * 关闭日期
     */
    @Column(name = "关闭日期")
    @TableField(value = "关闭日期")
    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    private Date closeTime;

    /**
     * 优先级
     */
    @Column(name = "优先级")
    @TableField(value = "优先级")
    private String priority;

    /**
     * 仓储地点
     */
    @Column(name = "仓储地点")
    @TableField(value = "仓储地点")
    private String storageSpace;

    /**
     * 销售订单
     */
    @Column(name = "销售订单")
    @TableField(value = "销售订单")
    private String saleOrder;

    /**
     * 销售单行
     */
    @Column(name = "销售单行")
    @TableField(value = "销售单行")
    private Integer saleOrderLine;

    /**
     * 销售备注
     */
    @Column(name = "销售备注")
    @TableField(value = "销售备注")
    private String saleBz;

    /**
     * 计划备注
     */
    @Column(name = "计划备注")
    @TableField(value = "计划备注")
    private String bz;

    /**
     * 订单状态
     */
    @Column(name = "订单状态")
    @TableField(value = "订单状态")

    private Integer abutmentStatus;


    /**
     * 生产分厂
     */
    @Column(name = "生产分厂")
    @TableField(value = "生产分厂")
    private String productionBranchFactory;


    /**
     * 投入数量
     */
    @Column(name = "投入数量")
    @TableField(value = "投入数量")
    private Integer realNumber;

}
